<%@page import="com.xbk.jtable.ui.jForm"%>
<%@page import="com.xbk.jtable.ui.jTableUtil"%>
<%@page import="com.xbk.platform.DataMap"%>
<%@page import="com.xbk.util.StringUtil"%>
<%@page import="com.xbk.jtable.ui.Widget"%>
<%@page import="com.xbk.jtable.ui.jTable"%>
<%@page import="com.xbk.platform.DaoUtil"%>
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@include file="/Include/include.jspf"%>
<style type="text/css">
</style>
<%
	DaoUtil du = ConnectionMananger.getDaoUtil();
	String sInterfaceID = request.getParameter("interfaceid");
	
	String jtableData = "";
	DataMap inter = new DataMap(); 
	
// 	if(StringUtil.notNull(sInterfaceID)){
// 		String sql = "SELECT * FROM DCP_INTERFACE_DEF WHERE INTERFACEID = '"+sInterfaceID+"'";
// 		inter = du.getResult(sql);
		String sSql = "SELECT * FROM USER_INFO";
		jTable jtable = new jTable(du);
		jtable.setKeyCols("USERID");
		jtable.setRelativeTable("USER_INFO");
		jtable.initBySql(sSql);
		jtable.setHeader(du.getCols(sSql));
		jtableData = jtable.getHtml();
// 	}
	du.close();
%>
</head>
<body>
<!-- top -->
<div id="top">
	<%@include file="/top.jsp" %>
</div>
<!-- content -->
  	<div id="jtableContainer" class="mg20 mt100"></div>
</body>

<script type="text/javascript">
$(function() {
	$(function(){
		var jtable = new jDcp.web.Table();
		jtable.parse("<%=jtableData %>");
		jtable.appendTo("jtableContainer");
<%-- 		jtable.setColValue("INTERFACEID", "1", "<%=sInterfaceID %>"); --%>
		jtable.hideCols({col:"INTERFACEID"});
		jtable.setEdit("true");
	});
});
</script>
</html>